| Total Complexity | 3 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | export class Detail { |
||
| 2 | constructor() { |
||
| 3 | this.autoDisplayApiCapabilities() |
||
| 4 | } |
||
| 5 | |||
| 6 | autoDisplayApiCapabilities() { |
||
| 7 | let globalApiTotalCount = $("#permissions-table td.for-api").length |
||
| 8 | let globalApiCheckedCount = $("#permissions-table td.for-api[data-checked='true']").length |
||
| 9 | |||
| 10 | if (globalApiCheckedCount > 0 && globalApiTotalCount !== globalApiCheckedCount) { |
||
| 11 | $("#permissions-table .for-api").removeClass('hide') |
||
| 12 | } |
||
| 13 | } |
||
| 14 | } |